<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'人员确认'}"></three-title>
    <div class="plr10">
        <div class="analyItem">
            <p class="analyItemTit tx-center">交底时间</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8 fl">时间</span>
                    <el-date-picker
                        class="fl"
                        v-model="time"
                        type="date"
                        placeholder="选择日期">
                    </el-date-picker>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8 fl">开工仪式开启</span>
                    <el-switch
                        style="position:relative;top:5px"
                        class="fl"
                        v-model="openType"
                        active-color="#09f"
                        inactive-color="#ddd">
                    </el-switch>
                </p>
            </div>
        </div>
    </div>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "18">
        <div class="analyItem" v-for="(item, index) in discloseData" :key="index">
            <p class="analyItemTit tx-center">{{item.participantsRole}}</p>
            <div class="analyItemCon">
                <div class='flex'>
                    <div class="clearfix col-md-11">
                        <p class="col-md-6">
                            <span class="cLightGray pr8">人员姓名</span>
                            <span>{{item.participantsName}}</span>
                        </p>
                        <p class="col-md-6">
                            <span class="cLightGray pr8">电话</span>
                            <span>{{item.participantsPhone}}</span>
                        </p>
                        <p class="col-md-12" v-if="item.description !== null">
                            <span class="cLightGray pr8">描述</span>
                            <span>{{item.description}}</span>
                        </p>
                    </div>
                    <el-checkbox v-model="checkID[item.id]"  v-if="item.isJoin === 1" disabled></el-checkbox>
                    <el-checkbox v-model="checkID[item.id]"  v-if="item.isJoin === 0"></el-checkbox>
                </div>
            </div>
        </div>
    </div>
    <div class="layerRtb-footer">
        <div class="analyItem">
            <p class="analyItemTit tx-center">综合</p>
            <div class="analyItemCon">
                <div class="tx-center">
                    <input type="button" class="uiBtn-normal uiBtn-blue" value="确定">
                </div>
            </div>
        </div>
    </div>
</div>
</template>
<script>
export default {
    props: ['type', 'role'],
    data () {
        return {
            buttonIsShow: false, // 按钮是否显示
            discloseData: [
                {
                    id: 1,
                    participantsRole: '甲方',
                    participantsName: '温蓝',
                    participantsPhone: '15986523587',
                    description: '描述',
                    isJoin: 0
                },
                {
                    id: 2,
                    participantsRole: '项目经理',
                    participantsName: '汪松牛',
                    participantsPhone: '13001974987',
                    description: '描述',
                    isJoin: 0
                },
                {
                    id: 3,
                    participantsRole: '主案设计师',
                    participantsName: '温蓝',
                    participantsPhone: '13464930755',
                    description: '描述',
                    isJoin: 0
                }
            ], // 交底数据
            checkID: [], // 复选框数组
            time: '', // 交底时间
            openType: false // 开工仪式开启
        }
    },
    computed: {
    },
    created () {
    },
    methods: {

    },
    watch: {
    }
}
</script>
